<%@ include file="/WEB-INF/jsp/taglib.jsp" %>

<jsp:useBean id="actionBean" scope="request" type="com.rupertjones.globalcron.web.InfoHostsAction" />

<s:layout-render name="/WEB-INF/jsp/layout.jsp" title="Global Cron" subtitle="Hosts">
        <s:layout-component name="body">
        <h1>Hosts</h1>
        <display:table name="actionBean.hosts" id="host" requestURI="HostInfo.action" class="rounded-corner">
            <display:column title="Name" property="name"/>
            <display:column title="Hostname" property="hostname"/>
            <display:column title="Timezone" property="timezoneId"/>
            <display:column title="Enabled" property="enabled"/>
            <display:column title="">
                <a href="InfoHost.action?host.id=${host.id}"><img align="right" src="resources/info.png" border="0"></a>
                <sec:authorize access="hasRole('ROLE_ADMIN')">
                    <a href="EditHost.action?host.id=${host.id}"><img style="padding-right:10px;" align="right" src="resources/edit.gif" border="0"></a>
                </sec:authorize>
            </display:column>
        </display:table>
    </s:layout-component>
</s:layout-render>
